<?php
    @header("Content-Type:text/html;charset=utf-8");

    const host = "b-wshv3yqcr9vlhw.bch.rds.gz.baidubce.com";
    const user = "b_wshv3yqcr9vlhw";
    const pwd = "12345678";
    const dbName = "b_wshv3yqcr9vlhw";

    $conn = mysqli_connect(host,user,pwd,dbName);
    

    if(!$conn){
        exit("数据库连接失败！");
    }

    mysqli_query($conn,"set names utf8");
    mysqli_query($conn,"set character set utf-8");
?>